package com.jnxx.task.service.impl;

import com.jnxx.basic.service.impl.BaseServiceImpl;
import com.jnxx.basic.util.GetStaffRequestUtil;
import com.jnxx.task.domain.Comment;
import com.jnxx.task.domain.OkrStaff;
import com.jnxx.task.service.ICommentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 业务实现类：
 */
@Slf4j
@Service
public class CommentServiceImpl extends BaseServiceImpl<Comment> implements ICommentService {

    @Override
    public void del(Long id) {
        Comment comment = super.findOne(id);
        OkrStaff staff = GetStaffRequestUtil.getStaff();
        log.info("{}删除了内容为：{}，的评论", staff.getName(), comment.getContent());
        super.del(id);
    }
}
